package com.showde.shoppingmall.business;

import com.showde.shoppingmall.business.NetCallbackImplBase.Notify;
import com.showde.shoppingmall.netentity.ProductSearchEntity;

public class ProductSearchBusiness extends BusinessBase {

	private String type;
	private String searchKey;

	public ProductSearchBusiness(Notify notify, String type, String searchKey) {
		super(notify);
		this.type = type;
		this.searchKey = searchKey;
		prepare();
	}

	public ProductSearchBusiness(Notify notify,  String searchKey) {
		super(notify);
		this.searchKey = searchKey;
		prepare1();
	}
	
	@Override
	public void prepare() {
		this.netEntity = new ProductSearchEntity(type, searchKey);
	}
	
	public void prepare1() {
		this.netEntity = new ProductSearchEntity(searchKey);
	}

}
